using System;

namespace ShadeTree.Binding.Lists
{
    public class ListValue : IComparable
    {
        public ListValue(string display, object value)
        {
            Display = display;
            Value = value;
        }

        public string Display { get; set; }

        public object Value { get; set; }

        #region IComparable Members

        public int CompareTo(object obj)
        {
            var peer = (ListValue) obj;
            return Display.CompareTo(peer.Display);
        }

        #endregion
    }
}